{* Module template: last_feed *}
{foreach from=$feeds item=feed name=lastfeed}
	<div class="card mb-3">
		<a href="{$SCRIPT_NAME}?page={$feed['alias']}&id={$feed['id']}">
		{if isset($feed['image'][0])}
			{foreach from=$feed['image'] item=image}
				<img src="upload/images/{$image['thumb']}" class="card-img-top" alt="{$image['alt']}">
			{/foreach}
		{else}
			<img src='' class="card-img-top" alt="{$feed['title']}">
		{/if}
		</a>
		<a href="{$SCRIPT_NAME}?page={$feed['alias']}" class="badge badge-primary position-absolute roocms-ftitle-label">{$feed['ftitle']}</a>
		<div class="card-body">
			<a href="{$SCRIPT_NAME}?page={$feed['alias']}&id={$feed['id']}" class="card-title d-none d-xl-block h5">{$feed['title']}</a>
			<a href="{$SCRIPT_NAME}?page={$feed['alias']}&id={$feed['id']}" class="card-title d-block d-xl-none h6">{$feed['title']}</a>
			<div class="card-text d-flex flex-column flex-xl-row">
				<small class="text-muted py-2 text-center text-xl-left">{$feed['datepub']}</small>
				<a href="{$SCRIPT_NAME}?page={$feed['alias']}&id={$feed['id']}" class="btn btn-sm btn-light ml-xl-auto">Читать</a>
			</div>
		</div>
	</div>
{/foreach}
